/**
 * @Author: wangsht
 * @Date: 2021/1/15
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';
//  加载广告漏出列表数据
export const getAdExposed = (params) => axios.get(`${SERVER.CLUECENTER}/adExposed`, { params });

export const upDatetAdExposedStatus = (params) => axios.get(`${SERVER.CLUECENTER}/adExposed/upDatetAdExposedStatus`, { params });

export const editAdExposed = params => axios.post(`${SERVER.CLUECENTER}/adExposed/editAdExposed`, params);

//export const exportAdExposed = params => axios.get(`${SERVER.CLUECENTER}/adExposed/exportAdExposed`, { params });

// 导出
export const exportAdExposed = params => {
  return axios({
    url: `${SERVER.CLUECENTER}/adExposed/exportAdExposed`,
    method: 'get',
    params: params,
    responseType: 'blob'
  });
};

//  加载广告漏出变更历史
export const adExposedHistoryList = (params) => axios.get(`${SERVER.CLUECENTER}/adExposedHistory/list`, { params });
//  加载经销形式字典
export const getFinanceCompany = (params) => axios.get(`${SERVER.CLUECENTER}/adExposed`, { params });
//编辑
// export const getSeries = _params => axios.get(`${SERVER.CLUECENTER}/adExposed`);

//导入

//下载

//启用

//停用
